<template>
  <div id='temp'>
      <mt-swipe :auto="2000">
        <!--2.0中遍历要加:key='index'-->
            <mt-swipe-item v-for="(item,index) in imgs" :key="index">
                <img v-bind:src="item.img">
            </mt-swipe-item> 
        </mt-swipe>
  </div>
</template>
<script>
export default {
 props:['imgs'],
  data () {  
    return {
    };
  }
}
</script>
<style scoped>
  .mint-swipe-item{
        height:240px;
        width:100%;
    }
    .mint-swipe-item img{
        width:100%;
        height:100%;
    }
    .mint-swipe{
        height:240px;
    }
</style>